import Koa from "koa";
import router from "./router/index.js";
import bodyParser from "koa-bodyparser";

const app = new Koa();

app.use(bodyParser()); //解析请求的json对象
app.use(router);
app.listen(6677);

console.log("服务运行地址:http://localhost:6677");
